// PayoutTypeArray.cpp: implementation of the CPayoutTypeArray class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "AUSlotsTester.h"
#include "PayoutTypeArray.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CPayoutType::CPayoutType()
{
}

CPayoutType::CPayoutType( const CAUSlotsGutsPayoutsAccessor& accessor )
{
	m_nID = accessor.m_payouttypeid;
	m_strName = accessor.m_payoutname;
	m_nPayout = accessor.m_payoutAmount;
}

CPayoutType& CPayoutType::operator=( const CAUSlotsGutsPayoutsAccessor& accessor )
{
	m_nID = accessor.m_payouttypeid;
	m_strName = accessor.m_payoutname;
	m_nPayout = accessor.m_payoutAmount;

	return *this;
}

CPayoutTypeArray::CPayoutTypeArray()
{
}

CPayoutTypeArray::~CPayoutTypeArray()
{
}

int CPayoutTypeArray::Add( const CAUSlotsGutsPayoutsAccessor& accessor )
{
	return CArray< CPayoutType, const CPayoutType& >::Add( CPayoutType( accessor ) );
}

